home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / comm2 / tguquit.zip / TGUQUIT.DOC < prev    next >
Text File  |  1993-01-13  |  5KB  |  138 lines

  1.     | TGUQUIT - Telegard User Quit alarm
  2.     | For Telegard (any version!)
  3.     | Release Date - January 13, 1993
  4.  
  5.  
  6.  
  7. DISCLAIMER: Hey, I'm not responsible for anything.  Batch files, if not 
  8. written correctly, are inherently dangerous.  I hereby take no responsibility 
  9. for any damage that may occur through the use of these batch files or other
  10. files in this archive.  End of story.
  11.  
  12. REGISTRATION:  You've gotta be kidding!!!  I REALLY don't expect ANY money
  13. for a couple measly batch files that took 10 minutes to write!!!  Besides, I
  14. hate software that has to be registered with the author.  I'm doing this to
  15. help others, not help myself.  Enjoy!  If you send me money it'll be sent back
  16. to the source.
  17.  
  18. ──────────────────────────────────────────────────────────────────────────────
  19.  
  20. TgUserquit is a series of batch files created to quit immediately after a
  21. user logs off, but can be configured for yourself.  If run by itself,
  22. Telegard can do essentially the same thing by pressing Shift-F10 while a
  23. user is on.  However, if Telegard is loaded with a Front End mailer, and the
  24. -q option is used, this function will do you no good.  
  25.  
  26.  
  27. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  28. !! Before I proceed, I just wanted to tell all of you what an incredibly   !!
  29. !! BRILLIANT person I am, and how original and creative I was to get the   !!
  30. !! idea for this ALL BY MYSELF!!!!  NOT!!!!!!!!  Okay, okay, the idea came !!
  31. !! from a wonderful SysOp friend of mine at a party in which everyone      !!
  32. !! eventually got drunk and passed out at.  :)  Hence, I decided to try it !!
  33. !! out myself.  I loved it SO MUCH that I couldn't keep it to myself!      !!
  34. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  35.  
  36.  
  37. First thing you need to do is create a batch file in your Telegard directory
  38. (or use the one provided) named GLOBAT1.BAT.  This can be executed using Alt-1
  39. in Telegard while a user is on.
  40.  
  41. Here's my GLOBAT1.BAT
  42.  
  43. ────────────────────────────────────────────────────────────────────────────────
  44. @echo off
  45. echo I want the computer!!!>c:\bbs\iwantit.tmp
  46. exit
  47. ────────────────────────────────────────────────────────────────────────────────
  48.  
  49.  
  50. Pretty simple...  Now you'll want a file called TG.BAT that looks like the
  51. following:
  52. ────────────────────────────────────────────────────────────────────────────────
  53. @echo off
  54. telegard %1 %2 %3 %4 %5 %6 %7
  55. if exist c:\bbs\iwantit.tmp goto iwantit
  56. goto end
  57.  
  58. :iwantit
  59. del c:\bbs\iwantit.tmp
  60. echo ath1m0>com1
  61. cls
  62. echo Come and get it!!!                            \   ┌─  Here, add
  63. c:\sbpro\sbfmdrv>nul                                 >─┤   whatever suits
  64. c:\sbpro\cmf\playcmf c:\sbpro\cmf\mozart1.cmf>nul  /   └─  your needs.
  65. wait 30
  66. if errorlevel 2 goto itsmine
  67. if errorlevel 1 goto end
  68.  
  69. :end
  70. cd\fd
  71. front
  72. goto end2
  73.  
  74. :itsmine
  75. echo Enjoy!
  76.  
  77. :end2
  78. ────────────────────────────────────────────────────────────────────────────────
  79.  
  80. The two lines that load load my Sound Blaster Pro Driver and playcmf are simply
  81. meant to warn me that the user has logged on (plus it sounds good and makes it
  82. look professional-like).  You can use whatever you want here, whether it's PC
  83. music or the Star Trek theme or whatever.  I myself enjoy Mozart. :)
  84.  
  85. WAIT is another program included in this archive.  Special thanks to the
  86. designer(s) who wrote it.  This program will return an errorlevel 0 if the time
  87. specified (in seconds) elapses, an errorlevel 1 if a "white" key is pressed
  88. (enter, space, tab), and an errorlevel 2 if a "non-white" key is pressed (any
  89. other key).  Refer to the documentation of wait for further details.
  90.  
  91.  
  92. You're front.bat file (or whatever you execute for your Front end mailer).  In
  93. this example, I used a few sections of my Front Door batch file.  The 
  94. errorlevel Front Door exited with for a 2400 baud caller was 201.
  95.  
  96. ────────────────────────────────────────────────────────────────────────────────
  97. @echo off
  98. :loop
  99. cd\fd
  100. FD
  101. if errorlevel 201 goto c24
  102. goto end
  103.  
  104. REM Lotsa stuff deleted in here....
  105.  
  106. :c24
  107. echo.>com1
  108. echo Welcome!  Please wait while Destruct Zero FIRES UP!>com1
  109. echo.>com1
  110. cd\bbs
  111. tg -b24 -q
  112. cd\fd
  113. goto loop
  114.  
  115. REM Lotsa stuff deleted here too....
  116.  
  117. :end
  118. echo ath1m0>com1
  119. ────────────────────────────────────────────────────────────────────────────────
  120.  
  121.  
  122. And that's all there is to it!  Just repeat the above for all you baud rates,
  123. inserting the correct speed when apropriate!   Quite easy actually...  Now just
  124. press Alt-1 and go eat lunch, watch T.V. or call your bes friend and the
  125. computer will let you know when you can use it!  
  126.  
  127. ────────────────────────────────────────────────────────────────────────────────
  128.  
  129. Wow!  I wrote all this crap in less than an hour!  If you use these
  130. instructions, I would like to here from you.  Tell me what you think, and how
  131. I can improve TGUQUIT.  I can be reached by the following mediums:
  132. 1:104/329 - FidoNet
  133. 21:21/2 - FishNet
  134. jadams@csn.org - Internet
  135.  
  136. Or, you can call Destruct Zero BBS at (303)797-3805.  By the way, the name is
  137. Marion.